package com.nuoniu.sibanyun.service.crm.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.crm.CrmRequirement;
import com.nuoniu.sibanyun.mapper.crm.CrmRequirementMapper;
import com.nuoniu.sibanyun.service.crm.ICrmRequirementService;
import com.nuoniu.sibanyun.userThread.UserInfo;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 需求管理 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
@Service
public class CrmRequirementServiceImpl extends ServiceImpl<CrmRequirementMapper, CrmRequirement> implements ICrmRequirementService {

    @Autowired
    private CrmRequirementMapper requirementMapper;

    @Override
    public Page<CrmRequirement> pageRequirement(Page page, CrmRequirement requirement) {
        UserInfo userInfo = UserThreadLocal.get();
        return  requirementMapper.pageRequirement(page, requirement, userInfo);
    }
}
